package com.infocollect.project.api.ui;

import com.infocollect.project.api.entity.TappActinsEntity;
import com.infocollect.project.form.vo.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (TappActins)表控制层
 *
 * @author makejava
 * @since 2019-12-25 10:32:28
 */
@Api(value = "tappActins", tags = "节点实例信息")
@RestController
@RequestMapping("tappActins")
public class TappActinsController {
    /**
     * 服务对象
     */
    @Resource
    private com.infocollect.project.api.service.ITappActinsService ITappActinsService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public R<TappActinsEntity> selectOne(Long id) {
        return R.newOk(this.ITappActinsService.queryById(id));
    }

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @PostMapping("getCompletedNodeList")
    public R <List<TappActinsEntity>> getCompletedNodeList(@RequestParam("fprocessinsid") Long fprocessinsid) {
        return R.newOk( this.ITappActinsService.getCompletedNodeList(fprocessinsid));
    }

}